// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CrawledPropertyInfo.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Defines the CrawledPropertyInfo type.
//   Note: This is based on the SSPC (codeplex).
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.Saf.Actions.Moss.Entities
{
    using System;
    using System.Xml.Serialization;

    using Microsoft.Office.Server.Search.Administration;

    using SharePoint.Wss.Entities;

    using Spring.Objects;

    /// <summary>
    /// Used to contain a CrawledPropertyInformation.
    /// </summary>
    [Serializable]
    public class CrawledPropertyInfo : WSSEntityBase
    {
        private string name;
        private Guid propSet;
        private int variantType;
        private bool isNameEnum;

        [XmlAttribute]
        public int VariantType
        {
            get { return variantType; }
            set { variantType = value; }
        }

        [XmlAttribute]
        public Guid PropSet
        {
            get { return propSet; }
            set { propSet = value; }
        }

        [XmlAttribute]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        [XmlAttribute]
        public bool IsNameEnum
        {
            get { return isNameEnum; }
            set { isNameEnum = value; }
        }
    }
}